package com.example.administrator.rxjavarxandroid_retrofit.reject.moudle;

import android.app.Activity;

import com.example.administrator.rxjavarxandroid_retrofit.reject.PerActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by chenboge on 2016/12/18.
 */
@Module
public class ActivityModule {

    private Activity mActivity;

    public ActivityModule(Activity activity) {
        mActivity = activity;
    }

    @Provides
    @PerActivity
    public Activity provideActivity() {
        return mActivity;
    }

}
